<div class="slide-dialog-header">
	<h2>{{title}}</h2>
	<div class="slide-dialog-toolbar">
		<ul>
			<li><span class="ui-btn slide-dialog-close" ng-click="close(false)"><i class="fa fa-remove"></i></span></li>
		</ul>
	</div>
</div>
<div class="slide-dialog-body">
	<div class="data-panel">
		<form name="form" novalidate="novalidate" ng-submit="submit(form.$valid);">
			<div class="data-panel-body">
				<div class="data-form">
					<dl>
						<dt>table列表：</dt>
						<dd>
							<label class="checkbox-group" ng-repeat="table in tables track by table.id">
                                <!-- <input name="tables" ng-model="table.checked" ng-click="checkbox(data, 'tables', table, 'id')" ng-checked="isChecked(data, 'tables', table, 'id')" value="{{table.id}}" class="x-checkbox" ng-required="!data.tables || data.tables.length === 0" type="checkbox" /> -->
                                <input name="tables" ng-model="table.checked" ng-click="checkbox(data, 'tables', table.checked, table.id)" ng-checked="data.tables && data.tables.split(',').indexOf(table.id.toString()) > -1" value="{{table.id}}" class="x-checkbox" ng-required="!data.tables || data.tables.length === 0" type="checkbox" />
                                <span>{{table.name}}</span>
                            </label>
							<div class="x-error" ng-if="interacted(form.tables)" ng-messages="form.tables.$error">
                                <span ng-message="required">请至少选择一张表</span>
                            </div>
						</dd>
					</dl>
				</div>
			</div>
			<div class="data-panel-footer">
				<button class="dialog-button cancel-button" type="button" ng-click="close(false)">取消</button><button class="dialog-button" type="submit" ng-disabled="formDisabled">提交</button>
			</div>
		</form>
	</div>
</div>